function foo<T, E>(n1: T, n2: E) {

}
// 调用方式1:
foo<number, string>(1, '2')
foo<any[], { name: string }>([1, 2, 3], { name: 'cht' })

export { }